﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemplateSelect.aspx.cs" Inherits="CNVP.JShop.Web.Admin.Template.TemplateSelect" %>
<%@ Import NameSpace="System.Data"%>
<%@ Import NameSpace="System.Web"%>
<%@ Import NameSpace="System.Web.UI"%>
<%@ Import NameSpace="System.Web.UI.WebControls"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%=CNVP.Config.UIConfig.SiteName%></title>
            <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
    <link href="../CSS/Global.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/List.css" rel="stylesheet" type="text/css" />
    <link type="text/css" href="../images/global.css" rel="stylesheet"/>
<link type="text/css" href="../common/option.css" rel="stylesheet"/>
<link type="text/css" href="../common/thickbox.css" rel="stylesheet"/>
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="../common/thickbox.js"></script>
<script type="text/javascript" language="javascript" src="../common/option.js"></script>
<script type="text/javascript" language="javascript" src="template.js"></script>
<link type="text/css" href="Template.css" rel="stylesheet"/>
<script type="text/javascript">
    $(document).ready(function () {
        $(".list_tb tr").mouseover(function () {
            $(this).addClass("over");
        }).mouseout(function () {
            $(this).removeClass("over");
        })
        $(".list_tb tr:even").addClass("alt");
    });
</script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="hfCurentPath" Value="" runat="server" />
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td >
    <table border="0" cellspacing="0" cellpadding="0" class="Option">
  <tr>
    <td ><img src="../Images/Dot20.png"/>
    <asp:LinkButton ID="btUpFolder" runat="server" onclick="btUpFolder_Click"  >上一级目录</asp:LinkButton></td>
    <td></td>
  </tr>
</table>
</td>
    <td>&nbsp;</td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
        <asp:Repeater ID="rpList" runat="server"  >
                <HeaderTemplate>
                        <thead>
                            <tr>
                            <th><input id="cbCheckAll" type="checkbox" oncthck="AllCheck()" /></th>
                            <th>文件名称</th>
                            <th>文件大小</th>
                            <th>最后修改时间</th>
                            <th >操作</th>
                           </tr>
                        </thead>
                     <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                     <tr>
                        <td><asp:CheckBox id="cbCheck" runat="server"></asp:CheckBox></td>
                        <td><img src="file/<%#Eval("oFileType")==""?"default.icon":Eval("oFileType")%>.gif" style="height:auto; width:auto;" alt="<%#Eval("oFileType")%>" title="<%#Eval("oFileType")%>" /><a href='<%#(Eval("oFileType")=="Folder")?("?path="+Eval("oPath")+Eval("oFileName")+"/"):("FileEdit.aspx?path="+Eval("oPath")+"&file="+ Eval("oFileName")) %>' target="_self"><%# Eval("oFileName")%></a></td>
                        <td><%#Eval("oFileSize")%></td>
                        <td><%#Eval("oFileModifyTime")%></td>
                        <td style="width:100px;"><%#Eval("oSelectFile").ToString()%></td>
                   </tr>
                </ItemTemplate>
                <FooterTemplate>
                                 <asp:Literal ID="lblEmpty" Text="<tr><td colspan='5'>没有符合条件的条目!</td></tr>" runat="server" Visible='<%#bool.Parse((rpList.Items.Count==0).ToString())%>'></asp:Literal>
                    </tbody>
                </FooterTemplate>
        </asp:Repeater>
    
                      <tfoot>
                      <tr><td colspan="5"><div id="paging" runat="server"></div></td></tr>
                      </tfoot>
                    </table>

    </td>
  </tr>

</table>
    </form>
</body>
</html>